#include <REGX52.H>

void Delay1ms(unsigned int ms)	//@11.0592MHz
{
	unsigned char data i, j;

	while(ms--)
	{
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);

	}
}

int main()
{
	while(1)
	{
		P2 = 0xfe;
		Delay1ms(100);
		P2 = 0xfd;
		Delay1ms(100);
		P2 = 0xfb;
		Delay1ms(100);
		P2 = 0xf7;
		Delay1ms(10);
		P2 = 0xef;
		Delay1ms(10);
		P2 = 0xde;
		Delay1ms(10);
		P2 = 0xbe;
		Delay1ms(10);
		P2 = 0x7e;
		Delay1ms(10);
	}
}